package com.xing.mybatis.entity;

import java.util.Date;

public class UserAssetEntity {
    private Long id;
    private long memberId;
    private long assetId;
    private int assetType;
    private int assetStatus;
    private int quantity;
    private String skuId;

    /***
     * 资产开始时间，可以为 null
     */
    private Date startTime;

    /**
     * 资产失效时间，如果为 null，永久生效
     */
    private Date endTime;

    /**
     * 匿名拥有
     */
    private boolean anonymous;

    public UserAssetEntity() {
    }

    public UserAssetEntity(long memberId, long assetId, int assetType, int quantity, String skuId) {
        this.skuId = skuId;
        this.memberId = memberId;
        this.assetId = assetId;
        this.assetType = assetType;
        this.quantity = quantity;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public long getMemberId() {
        return memberId;
    }

    public void setMemberId(long memberId) {
        this.memberId = memberId;
    }

    public long getAssetId() {
        return assetId;
    }

    public void setAssetId(long assetId) {
        this.assetId = assetId;
    }

    public int getAssetType() {
        return assetType;
    }

    public void setAssetType(int assetType) {
        this.assetType = assetType;
    }

    public int getAssetStatus() {
        return assetStatus;
    }

    public void setAssetStatus(int assetStatus) {
        this.assetStatus = assetStatus;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public boolean isAnonymous() {
        return anonymous;
    }

    public void setAnonymous(boolean anonymous) {
        this.anonymous = anonymous;
    }
}
